Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix bug in correlation image calculation #1304

Draft
wants to merge 1 commit into
base: dev
Choose a base branch
from

Conversation

EricThomson
Copy link
Contributor

@EricThomson EricThomson commented Mar 22, 2024

Description

Fixes bug pointed out by @rcalfredson and implements fix suggested by @j-friedrich in discussion #1190

Type of change

  • Bug fix (non-breaking change which fixes an issue)

Has your PR been tested?

caimanmanager test passes.

I ran:
np.allclose(corr_im_local, corr_im_fft, rtol=1e-05, atol=1e-05, equal_nan=True)

Where corr_im_local is the output of the buggy function cm.local_correlations(), and corr_im_fft is the output of the more canonical fft-based correlation function cm.summary_images.local_correlations_fft()

until it came back True.

I haven't added this to the test suite. It might be a good idea though.

@EricThomson
Copy link
Contributor Author

I will add test to this, but not sure when -- I'm on vacation most of this week, so let's do after upcoming release.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant